import request from '@/utils/request'

// 查询家庭信息人员列表
export function listFamilyMembers(query) {
  return request({
    url: '/member/familyMembers/list',
    method: 'get',
    params: query
  })
}

// 查询家庭信息人员详细
export function getFamilyMembers(id) {
  return request({
    url: '/member/familyMembers/' + id,
    method: 'get'
  })
}

// 新增家庭信息人员
export function addFamilyMembers(data) {
  return request({
    url: '/member/familyMembers',
    method: 'post',
    data: data
  })
}

// 修改家庭信息人员
export function updateFamilyMembers(data) {
  return request({
    url: '/member/familyMembers',
    method: 'put',
    data: data
  })
}

// 删除家庭信息人员
export function delFamilyMembers(id) {
  return request({
    url: '/member/familyMembers/' + id,
    method: 'delete'
  })
}
